@import "../../style/constant";

.scaleBox {
  position: relative;
  height: 103px;
  padding-top: 28px;
}

.painScaleBox {
  position: relative;
  height: 180px;
  padding-top: 36px;
}

.topText {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 0 16px 9px;
}
.title {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #595959;
  line-height: 20px;
  @include line-ellipsis-x(1);
}

.bubbleBox {
  position: relative;
  height: 21px;
}

.bubble {
  padding: 0 11px;
  min-width: 32px;
  height: 18px;
  background: #47C690;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 18px;
  position: absolute;
  top: 0;
}
.bubbleWX {
  top: 0;
}
.bubbleBottom {
  content: '';
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: #47C690;
  position: absolute;
  bottom: -7.5px;
  left: calc(50% - 4px);
}

.bubbleText {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 18px;
}

.baseSlider {
  height: 8px;
  position: relative;
  z-index: 1;
}

.sliderWX {
  composes: baseSlider;
  margin: 10.5px 28px;
  width: calc(100% - 56px);
}

.slider {
  composes: baseSlider;
  margin-left: 10px;
  width: calc(100% - 26px);
}

.sliderPain {
  margin-top: 5px;
}

:global(.weui-slider__track) {
  height: 3px;
}
:global(.weui-slider__inner) {
  height: 3px;
}
:global(.weui-slider__handler) {
  z-index: 2;
}

.descTip {
  display: flex;
  flex-direction: row;
  margin-top: 6px;
  justify-content: space-between;
  width: calc(100% - 56px);
  margin-left: 28px;
  font-size: 12px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #8C8C8C;
  line-height: 17px;
  position: relative;
}

.bottomBox {
  position: absolute;
  top: 20px;
  left: 0;
  width: 48px;
  display: flex;
  justify-content: center;
  margin-left: -24px;
}
.topBox {
  width: 1px;
  height: 18px;
  background: #47C690;
  position: absolute;
  top: -20px;
  left: 50%;
}
.circlePoint {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  top: -7px;
  left: 50%;
  margin-left: -2px;
  background: #47C690;
}
.descText {
  color: $primaryBlack;
}
.four {
  composes: bottomBox;
  left: 40%;
  .topBox {
    background: #E4CD5E;
  }
  .circlePoint {
    background: #E4CD5E;
  }
}
.seven {
  composes: bottomBox;
  left: 70%;
  .topBox {
    background: #FF8A2D;
  }
  .circlePoint {
    background: #FF8A2D;
  }
}

.blockTip {
  width: calc(100% - 56px);
  margin-left: 28px;
  height: 8px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #FFFFFF;
  position: relative;
  top: -7.5px;
}

.blockWXTip {
  width: calc(100% - 56px);
  margin-left: 28px;
  height: 8px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #FFFFFF;
  position: relative;
  top: -12px;
}
.topCircle {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #E8E8E8;
}
.active {
  background: #47C690;
}
.textTip {
  width: calc(100% - 56px);
  margin-left: 28px;
  height: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  line-height: 20px;
  font-size: 14px;
  position: relative;
  top: 4px;
}
.textWXTip {
  width: calc(100% - 56px);
  margin-left: 28px;
  height: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  line-height: 20px;
  font-size: 14px;
  position: relative;
  top: 0;
}
.tip {
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #8C8C8C;
  line-height: 20px;
}
.twoLetter {
  margin-left: -8px;
}
.boldText {
  color: $primaryBlack;
  font-weight: 500;
  font-family: PingFangSC-Medium, PingFang SC;
}

.blockBox {
  display: flex;
  flex: 1;
  position: relative;
  top: -2px;
  &:first-child {
    .painBlock {
      border-radius: 4px 0 0 4px;
    }
  }
  &:last-child {
    .painBlock {
      width: 100%;
      border-radius: 0 4px 4px 0;
    }
  }
}

.painBlock {
  position: absolute;
  top: 2px;
  left: 0;
  width: calc(100% - 2px);
  height: 8px;
  background-color: #E8E8E8;
}
.disabledBlock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.8);
}

.painBlockWX {
  composes: painBlock;
  top: 0;
}

.bgColor0 {
  background: linear-gradient(90deg, #47C690 0%, #7BD883 100%);
}
.bgColor1 {
  background: linear-gradient(90deg, #7BD883 0%, #66CE77 100%);
}
.bgColor2 {
  background: linear-gradient(90deg, #66CE77 0%, #7BD065 100%);
}
.bgColor3 {
  background: linear-gradient(90deg, #7BD065 0%, #E5CB59 100%);
}
.bgColor4 {
  background: linear-gradient(90deg, #E5CB59 0%, #FFB445 100%);
}
.bgColor5 {
  background: linear-gradient(90deg, #FFB445 0%, #F89D3B 100%);
}
.bgColor6 {
  background: linear-gradient(90deg, #F89D3B 0%, #FF8A2D 100%);
}
.bgColor7 {
  background: linear-gradient(90deg, #FF8A2D 0%, #FB6E2D 100%);
}
.bgColor8 {
  background: linear-gradient(90deg, #FF8A2D 0%, #F75531 100%);
}
.bgColor9 {
  background: linear-gradient(90deg, #F75531 0%, #F24140 100%);
}
